//
//  DemoViewController.h
//  MySpaceID
//
//  Created by haider on Monday6/8/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OffsiteContext.h"
#import "RestV1.h"

@interface MySpaceID_DemoViewController : UIViewController {
	OffsiteContext *context;
	RestV1 *api;
	bool urlReturn;
	NSInteger userId;
	NSArray *masterFriendList;
	NSArray *masterUserIds;
	NSArray *masterImageUrl;
	NSArray *masterUsername;
	IBOutlet UIImageView *friendImageView;
	IBOutlet UIImageView *profileImageView;
	IBOutlet UISlider *slider;
	IBOutlet UITextField *statusTextField;
	IBOutlet UITextView *statusTextView;
	
}

@property bool urlReturn;
@property (assign) OffsiteContext* context;
@property (assign) RestV1* api;
@property (assign) NSInteger userId;
@property (assign) NSArray* masterFriendList;
@property (assign) NSArray* masterUserIds;
@property (assign) NSArray* masterImageUrl;
@property (nonatomic, retain) NSArray* masterUsername;
@property (nonatomic, retain) IBOutlet UIImageView *friendImageView;
@property (nonatomic, retain) IBOutlet UIImageView *profileImageView;
@property (nonatomic, retain) IBOutlet UISlider *slider;
@property (nonatomic, retain) IBOutlet UITextField *statusTextField;
@property (nonatomic, retain) IBOutlet UITextView *statusTextView;

- (IBAction) sliderAction: (id)sender;
- (IBAction) updateAction: (id) sender;

- (void) parseUserData: (NSData*) data;
- (void) parseMoodData: (NSData*) data;
- (void) parseFriendsData: (NSData*) data;

@end
